﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<style type="text/css">
#user_gmap{ width:600px;height:600px; margin:20px20px 0px; border:solid 1px #111; }
#user_glink {width:600px; text-align:right; font-size:10px; font-weight:normal; padding:0px; height:20px; margin:0px;}
</style>
<script type="text/javascript">
google.maps.event.addDomListener(window, 'load', function() {
	var mapdiv = document.getElementById('user_gmap');
	var myOptions = {
	zoom: 7,
	center: new google.maps.LatLng(23.639774584511986,120.99440774645996),
	mapTypeId: google.maps.MapTypeId.ROADMAP,
	scaleControl: true
	};
	var map = new google.maps.Map(mapdiv, myOptions);
	var marker = new google.maps.Marker({
	position: new google.maps.LatLng(23.639774584511986,120.99440774645996),
	map: map, 
	title: '4564'
	});
	var infowindow = new google.maps.InfoWindow({
	content: '<strong>4564</strong><br />8977*',
	size: new google.maps.Size(200, 200)
	});
	google.maps.event.addListener(marker, 'click', function() {
	infowindow.open(map,marker);
	});
	var marker = new google.maps.Marker({
	    position: new google.maps.LatLng(23, 120),
	    map: map,
	    title: '4564'
	});
	var infowindow = new google.maps.InfoWindow({
	    content: '<strong>4564</strong><br />8977*',
	    size: new google.maps.Size(200, 200)
	});
	google.maps.event.addListener(marker, 'click', function () {
	    infowindow.open(map, marker);
	});
	infowindow.open(map,marker);
});


</script>
<div id="user_gmap"></div>
<div id="user_glink"><a href="http://www.nap.st/google_map_generator/?lang=zh-TW" target="_blank">Google Map Generator</a></div>

    </div>
    </form>
</body>
</html>
